<!DOCTYPE html>
<html>
  <head>
    <link rel="canonical" href="http://blog.csdn.net/Jason__Liang/article/details/54893635"/> 
    <script type="text/javascript">
        var username = "jason__liang";
        var _blogger = username;
        var blog_address = "http://blog.csdn.net/jason__liang";
        var static_host = "http://csdnimg.cn/release/phoenix/";
        var currentUserName = ""; 
        var fileName = '54893635';
        var commentscount = 4;
        var islock = false;
        window.quickReplyflag = true;
        var totalFloor = 1;
        var isBole = false;
        var isDigg = false;
        var isExpert = false;
        var isAdm = false;
        var baiduKey = "python%E5%A4%9A%E7%BA%BF%E7%A8%8B%E4%B8%8B%E8%BD%BD%E7%BD%91%E7%9B%98%E7%85%A7%E7%89%87";
        var needInsertBaidu = false;
        var isShowAds = true;
    </script>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <script src="http://c.csdnimg.cn/public/common/libs/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
    <link rel="stylesheet" href="http://c.csdnimg.cn/public/static/css/avatar.css">
                <link rel="stylesheet" href="http://csdnimg.cn/release/phoenix/production/main-ffb45d8453.css">
          <link rel="stylesheet" href="http://c.csdnimg.cn/public/common/toolbar/content_toolbar_css/content_toolbar.css">

    <script src="http://csdnimg.cn/rabbit/exposure-click/main-1.0.5.js"></script>
    <script type="text/javascript" src="http://csdnimg.cn/pubfooter/js/tracking-1.0.2.js" charset="utf-8"></script>
    <script type="text/javascript" src="http://csdnimg.cn/release/phoenix/production/main-df0973cd7f.js"></script>

    <script src="http://dup.baidustatic.com/js/ds.js"></script>
    <script type="text/javascript">
        // Traffic Stats of the entire Web site By baidu
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?6bcd52f51e9b3dce32bec4a3997715ac";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
        // Traffic Stats of the entire Web site By baidu end
    </script>
    <meta name="description" content="本人电子系，只为一学生。心喜计算机，小编以怡情。
  说明：下载百度图片中的美女图片
  
  修改：默认url都已经写好了，只需要改一下cookies就可食用
  
  附加：运用了多线程，一个线程生产url，十个线程消费下载图片
  
  解释： 
  1、用正则表达式解析网页内容 
  2、建议用IDE工具运行，以便随时终止 
  3、用的os模块，在工作空间里建立一个《小图片》的文件夹，图片" />
    <meta name="keywords" content="python,多线程" />
    <meta http-equiv="Cache-Control" content="no-siteapp" /><link rel="alternate" media="handheld" href="#" />
    <meta name="shenma-site-verification" content="5a59773ab8077d4a62bf469ab966a63b_1497598848">
    <title>Python3 百度图片 美女 下载 爬虫 多线程 - CSDN博客</title>
    <link href="http://csdnimg.cn/public/favicon.ico" rel="SHORTCUT ICON">
              <script src="//csdnimg.cn/search/baidu_search-1.0.0.js?v=201802021047&autorun=true&install=true&keyword=python%E5%A4%9A%E7%BA%BF%E7%A8%8B%E4%B8%8B%E8%BD%BD%E7%BD%91%E7%9B%98%E7%85%A7%E7%89%87"  type="text/javascript"></script>
      </head>
<body>
<script id="toolbar-tpl-scriptId" prod="download" skin="black" src="http://c.csdnimg.cn/public/common/toolbar/js/content_toolbar.js" type="text/javascript" domain="http://blog.csdn.net/"></script>
<div class="container clearfix">
  <main>
      <div style="display:none;">
          <img src="" onerror='setTimeout(function(){if(top !== self){window["\x74\x6f\x70"]["\x6c\x6f\x63\x61\x74\x69\x6f\x6e"]["\x68\x72\x65\x66"] = window["\x6c\x6f\x63\x61\x74\x69\x6f\x6e"]["\x68\x72\x65\x66"];}            if(typeof(csdn)=="\x75\x6e\x64\x65\x66\x69\x6e\x65\x64"&&window["\x6c\x6f\x63\x61\x74\x69\x6f\x6e"]["\x68\x6f\x73\x74"]["\x69\x6e\x64\x65\x78\x4f\x66"]("\x63\x73\x64\x6e\x2e\x6e\x65\x74")<0&&window["\x6c\x6f\x63\x61\x74\x69\x6f\x6e"]["\x68\x6f\x73\x74"]["\x69\x6e\x64\x65\x78\x4f\x66"]("\x69\x74\x65\x79\x65\x2e\x63\x6f\x6d")<0){window["\x6c\x6f\x63\x61\x74\x69\x6f\x6e"]["\x68\x72\x65\x66"]="\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77\x77\x2e\x63\x73\x64\x6e\x2e\x6e\x65\x74";}},3000);'>
      </div>
    <article>
        <h1 class="csdn_top">Python3 百度图片 美女 下载 爬虫 多线程</h1>
        <div class="article_bar clearfix">
            <div class="artical_tag">
                <span class="original">
                                </span>
                <span class="time">2017年02月06日 15:41:39</span>
            </div>

            <ul class="article_tags clearfix csdn-tracking-statistics tracking-click" data-mod="popu_377" >
                <li class="tit">标签：</li>

<!--          [startarticletags]-->
                                                            <li><a href="http://so.csdn.net/so/search/s.do?q=python&t=blog" target="_blank">python</a> <span>/</span></li>
                                            <li><a href="http://so.csdn.net/so/search/s.do?q=多线程&t=blog" target="_blank">多线程</a> <span>/</span></li>
                                            <li><a href="http://so.csdn.net/so/search/s.do?q=百度图片&t=blog" target="_blank">百度图片</a> <span>/</span></li>
                                    <!--          [endarticletags]-->
            </ul>
            <ul class="right_bar">
                <li><button class="btn-noborder"><i class="icon iconfont icon-read"></i><span class="txt">861</span></button></li>
                <li class="edit">
                    <a class="btn-noborder" href="" >
                        <i class="icon iconfont icon-bianji"></i><span class="txt">编辑</span>
                    </a>
                </li>
                <li class="del">
                    <a class="btn-noborder" onclick="javascript:deleteArticle(fileName);return false;">
                        <i class="icon iconfont icon-shanchu"></i><span class="txt">删除</span>
                    </a>
                </li>
            </ul>
        </div>
        <div id="article_content" class="article_content csdn-tracking-statistics tracking-click" data-mod="popu_519" data-dsm="post">
                            <div class="markdown_views">
                        <h3 id="本人电子系只为一学生心喜计算机小编以怡情"><strong>本人电子系，只为一学生。心喜计算机，小编以怡情。</strong></h3>

<hr>

<blockquote>
  <p>说明：下载百度图片中的美女图片</p>
  
  <p>修改：默认url都已经写好了，只需要改一下<strong>cookies</strong>就可食用</p>
  
  <p>附加：运用了多线程，一个线程生产url，十个线程消费下载图片</p>
  
  <p>解释： <br>
  1、用<strong>正则表达式</strong>解析网页内容 <br>
  2、建议用IDE工具运行，以便随时终止 <br>
  3、用的os模块，在工作空间里建立一个《小图片》的文件夹，图片都默认下载里面</p>
  
  <p>缺点：我不太懂js的图片瀑布流效果怎么弄，所以一个关键词页面只能下载30张左右图片就转到其他的页面了</p>
  
  <h3 id="注意这个是简单爬虫爬完页面会自动爬-网页上面推荐的其他页面即-相关搜索">注意:这个是简单爬虫，爬完页面会自动爬  网页上面推荐的其他页面，即 <strong>相关搜索</strong></h3>
</blockquote>

<pre class="prettyprint"><code class=" hljs python"><span class="hljs-keyword">import</span> os
<span class="hljs-keyword">import</span>  re
<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">import</span> threading

<span class="hljs-comment">#得到路径，建立小图片文件夹，图片默认下载其中</span>
currentpath=os.getcwd()
<span class="hljs-keyword">if</span> <span class="hljs-keyword">not</span> os.path.exists(currentpath+os.sep+<span class="hljs-string">'小图片'</span>):
    os.mkdir(currentpath+os.sep+<span class="hljs-string">'小图片'</span>)

cookies={<span class="hljs-string">'xxxxxxxx'</span>: <span class="hljs-string">'xxxxxxxx'</span>}<span class="hljs-comment">#用自己的cookies，别拿我的干坏事</span>

headers={<span class="hljs-string">'Host'</span>:<span class="hljs-string">'xxxxxxxx'</span>,<span class="hljs-comment">#封装头部，否则有些图片下载不下来</span>
<span class="hljs-string">'Referer'</span>:<span class="hljs-string">'xxxxxxxxxxxxx'</span>,
<span class="hljs-string">'Upgrade-Insecure-Requests'</span>:<span class="hljs-string">'x'</span>,
<span class="hljs-string">'User-Agent'</span>:<span class="hljs-string">'xxxxxxxxxxxxxxxxxxxxxxxxx'</span>}

<span class="hljs-comment">#得到页面上图片的url与相关搜索的url</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">search</span><span class="hljs-params">(searchurl)</span>:</span>
    response = requests.get(searchurl,cookies=cookies,headers=headers)
    text=response.text
    s = re.findall(<span class="hljs-string">r'thumbURL":"([a-zA-z]+://[\w\.%=/\d,&amp;]*)'</span>, text)<span class="hljs-comment">#所有图片的url</span>
    m = re.findall(<span class="hljs-string">r'search/index.(\S*)"'</span>, text)<span class="hljs-comment">#当前页面指向其他页面的url</span>
    <span class="hljs-keyword">return</span> s,m

<span class="hljs-comment">#根据传入的url与jpg名字下载图片</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">download_pic</span><span class="hljs-params">(url,name)</span>:</span>
    path=os.getcwd()+os.sep+<span class="hljs-string">'小图片'</span>
    data=requests.get(url,cookies=cookies,headers=headers).content
    <span class="hljs-keyword">with</span> open(path+os.sep+name,<span class="hljs-string">'wb'</span>) <span class="hljs-keyword">as</span> f:
        f.write(data)
    print(<span class="hljs-string">'图片下载完成：%s'</span> % name)


gimagelist=[]<span class="hljs-comment">#图片的url</span>
queue=[]<span class="hljs-comment">#相关搜索的url</span>
queue.append(<span class="hljs-string">'tn=baiduimage&amp;ipn=r&amp;ct=201326592&amp;cl=2&amp;lm=-1&amp;st=-1&amp;sf=1&amp;fmq=&amp;pv=&amp;ic=0&amp;nc=1&amp;z=&amp;se=1&amp;showtab=0&amp;fb=0&amp;width=&amp;height=&amp;face=0&amp;istype=2&amp;ie=utf-8&amp;fm=index&amp;pos=history&amp;word=%E7%BE%8E%E5%A5%B3'</span>)<span class="hljs-comment">#默认搜索关键词美女，你也可以换成其他的关键词url的index?后面的部分</span>
gCondition=threading.Condition()<span class="hljs-comment">#线程相关</span>
visited=set()<span class="hljs-comment">#用来存放已经搜过的页面的url</span>
<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Producer</span><span class="hljs-params">(threading.Thread)</span>:</span>
    <span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">run</span><span class="hljs-params">(self)</span>:</span>
        print(<span class="hljs-string">'%s started'</span> % threading.current_thread())
        <span class="hljs-keyword">global</span> gimagelist
        <span class="hljs-keyword">global</span> gCondition
        <span class="hljs-keyword">global</span> queue
        <span class="hljs-keyword">for</span> j <span class="hljs-keyword">in</span> range(<span class="hljs-number">1</span>):<span class="hljs-comment">#我默认循环一次，你也可以改很多</span>
            a=queue.pop(<span class="hljs-number">0</span>)<span class="hljs-comment">#从队列中取出一个关键词url尾部</span>
            searchurl=<span class="hljs-string">'http://image.baidu.com/search/index?'</span>+a<span class="hljs-comment">#封装成url</span>
            <span class="hljs-keyword">if</span> searchurl <span class="hljs-keyword">not</span> <span class="hljs-keyword">in</span> visited:<span class="hljs-comment">#如果没有访问过</span>
                imgs,otherurl=search(searchurl)

                gCondition.acquire()<span class="hljs-comment">#上锁</span>
                <span class="hljs-keyword">for</span> i <span class="hljs-keyword">in</span> imgs:
                    gimagelist.append(i)<span class="hljs-comment">#添加图片url</span>
                gCondition.notify_all()<span class="hljs-comment">#唤醒所有等待的消费者</span>
                gCondition.release()<span class="hljs-comment">#释放锁</span>
                visited.add(searchurl)<span class="hljs-comment">#标记为已访问过</span>
                queue.extend(otherurl)<span class="hljs-comment">#将相关搜索的url放入</span>



<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Consumer</span><span class="hljs-params">(threading.Thread)</span>:</span>
    <span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">run</span><span class="hljs-params">(self)</span>:</span>
        print(<span class="hljs-string">'%s started'</span> % threading.current_thread())
        <span class="hljs-keyword">while</span> <span class="hljs-keyword">True</span>:
            <span class="hljs-keyword">global</span> gimagelist
            <span class="hljs-keyword">global</span> gCondition

            gCondition.acquire()<span class="hljs-comment">#上锁</span>
            <span class="hljs-keyword">while</span> len(gimagelist)==<span class="hljs-number">0</span>:
                gCondition.wait()<span class="hljs-comment">#没有则等待</span>
            url=gimagelist.pop()
            name=url.rsplit(<span class="hljs-string">'/'</span>)[-<span class="hljs-number">1</span>]<span class="hljs-comment">#取名字，以url后面的部分做名字</span>
            gCondition.release()
            download_pic(url,name)<span class="hljs-comment">#下载图片</span>


<span class="hljs-keyword">if</span> __name__==<span class="hljs-string">'__main__'</span>:
    Producer().start()

    <span class="hljs-keyword">for</span> i <span class="hljs-keyword">in</span> range(<span class="hljs-number">10</span>):<span class="hljs-comment">#十个消费者线程数</span>
        Consumer().start()
</code></pre>                            </div>
                                    <link rel="stylesheet" href="http://csdnimg.cn/release/phoenix/production/markdown_views-993eb3f29c.css" />
                                    </div>
    </article>
      <div class="readall_box csdn-tracking-statistics tracking-click" data-mod="popu_376">
          <div class="read_more_mask"></div>
          <a class="btn btn-large btn-gray-fred read_more_btn" target="_self">阅读全文</a>
      </div>
      <div class="article_copyright">
              </div>
      <ul class="article_collect clearfix csdn-tracking-statistics tracking-click"  data-mod="popu_378">
          <li class="tit">本文已收录于以下专栏：</li>
<!--          [startarticlecolumns]-->
                                <!--          [endarticlecolumns]-->
      </ul>
      <div class="comment_box clearfix" id="comments">
          <div id="comment_form">
              <div id="commentsbmitarear">
                              </div>
          </div>
      </div>
      <div class="comment_li_outbox">
          <div id="comment_list"></div>
      </div>

      <div class="more_comment">
          <div id="comment_bar" class="trackgin-ad" data-mod="popu_385"></div>
      </div>

      <!-- <h3 class="recommend_tit" id="related">相关文章推荐</h3> -->
      <div class="recommend_list clearfix" id="rasss">
                                                                        <dl class="clearfix csdn-tracking-statistics recommend_article" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                      <a href="http://blog.csdn.net/Win_Man/article/details/50644969"  target="_blank" strategy="BlogCommendFromBaidu_0">
                        <dd class="clearfix">
                          <h2 class="">python 多线程下载图片</h2>
                          <div class="summary">
                              接上一篇，因为图片量太大，所以试着用多线程来下载图片不知道会不会快一点，我将每个收藏夹内的所有图片的url放在url_list的列表中，然后将列表中的url分成100份，分配给100个线程同时下载，用...                          </div>

                          <ul class="">
                              <li class="avatar_img"><img src="http://avatar.csdn.net/3/2/3/3_win_man.jpg" alt="Win_Man" title="Win_Man"/></li>
                              <li class="user_name">Win_Man</li>
                              <li class="time">2016年02月08日 20:19</li>
                              <li class="visited_num"><i class="icon iconfont icon-read"></i><span>1733</span></li>
                          </ul>
                        </dd>
                      </a>
                  </dl>
                                                                                      <dl class="clearfix csdn-tracking-statistics recommend_article" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                      <a href="http://blog.csdn.net/serverxp/article/details/6958458"  target="_blank" strategy="BlogCommendFromBaidu_1">
                        <dd class="clearfix">
                          <h2 class="">Python 3中的多线程文件下载类</h2>
                          <div class="summary">
                              今天在网上看到一个多线程文件下载类，觉得编码写的不错，但是是python2的，所以改造了一下，不废话，上代码,说明：我的代码都会自己测试通过，所以可以放心使用
我的博客：http://www.pau...                          </div>

                          <ul class="">
                              <li class="avatar_img"><img src="http://avatar.csdn.net/9/7/F/3_serverxp.jpg" alt="serverxp" title="serverxp"/></li>
                              <li class="user_name">serverxp</li>
                              <li class="time">2011年11月11日 08:54</li>
                              <li class="visited_num"><i class="icon iconfont icon-read"></i><span>4097</span></li>
                          </ul>
                        </dd>
                      </a>
                  </dl>
                                                                      <dl class="">
                  <script>
                  (function() {
                    var s = "_" + Math.random().toString(36).slice(2);
                    document.write('<div id="' + s + '"></div>');
                    (window.slotbydup=window.slotbydup || []).push({
                      id: '4765209',
                      container: s,
                      size: '808,120',
                      display: 'inlay-fix'
                    });
                  })();
                  </script>
                </dl>
                                                                <dl class="clearfix csdn-tracking-statistics downloadElement" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                      <a class="clearfix" href="http://download.csdn.net/download/u013913435/9257181" target="_blank" strategy="searchFromBaidu_2">
                        <dd class="floatL">
                            <div class="summary">
                                <h2>Python3 多线程抓取淘女郎照片并分类保存</h2>
                                <div class="summary">
                                    <ul>
                                        <li class="time">2015年11月10日 11:28</li>
                                        <li class="visited_num fileSize">4KB</li>
                                        <li class="download_btn">下载</li>
                                    </ul>
                                </div>
                            </div>
                        </dd>
                        <dt class="floatR"><img class="maxwidth" src="http://csdnimg.cn/release/download/old_static/images/minetype/unkonw.svg" alt="" title=""/></dt>
                      </a>
                  </dl>
                                                                                      <dl class="clearfix csdn-tracking-statistics recommend_article" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                      <a href="http://blog.csdn.net/guyuealian/article/details/78730200"  target="_blank" strategy="searchFromBaidu_3">
                        <dd class="clearfix">
                          <h2 class="">Python 3 多线程下载百度图片搜索结果</h2>
                          <div class="summary">
                              Python 3 实现下载百度图片搜索结果转载来至：http://lovenight.github.io/2015/11/15/Python-3-%E5%A4%9A%E7%BA%BF%E7%A8%8B...                          </div>

                          <ul class="">
                              <li class="avatar_img"><img src="http://avatar.csdn.net/F/C/D/3_guyuealian.jpg" alt="guyuealian" title="guyuealian"/></li>
                              <li class="user_name">guyuealian</li>
                              <li class="time">2017年12月06日 14:17</li>
                              <li class="visited_num"><i class="icon iconfont icon-read"></i><span>446</span></li>
                          </ul>
                        </dd>
                      </a>
                  </dl>
                                                                                      <dl class="clearfix csdn-tracking-statistics recommend_article" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                      <a href="http://blog.csdn.net/idber/article/details/40425697"  target="_blank" strategy="BlogCommendFromBaidu_4">
                        <dd class="clearfix">
                          <h2 class="">Python3 多线程下载代码</h2>
                          <div class="summary">
                              根据http://www.oschina.net/code/snippet_70229_2407修改而来的版本                          </div>

                          <ul class="">
                              <li class="avatar_img"><img src="http://avatar.csdn.net/C/3/2/3_idber.jpg" alt="idber" title="idber"/></li>
                              <li class="user_name">idber</li>
                              <li class="time">2014年10月24日 13:47</li>
                              <li class="visited_num"><i class="icon iconfont icon-read"></i><span>1765</span></li>
                          </ul>
                        </dd>
                      </a>
                  </dl>
                                                                                      <dl class="clearfix csdn-tracking-statistics downloadElement" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                      <a class="clearfix" href="http://download.csdn.net/download/wankoilz/7568455" target="_blank" strategy="BlogCommendFromBaidu_5">
                        <dd class="floatL">
                            <div class="summary">
                                <h2>python3.3 多线程下载类（断点续传）</h2>
                                <div class="summary">
                                    <ul>
                                        <li class="time">2014年06月29日 16:58</li>
                                        <li class="visited_num fileSize">3KB</li>
                                        <li class="download_btn">下载</li>
                                    </ul>
                                </div>
                            </div>
                        </dd>
                        <dt class="floatR"><img class="maxwidth" src="http://csdnimg.cn/release/download/old_static/images/minetype/unkonw.svg" alt="" title=""/></dt>
                      </a>
                  </dl>
                                                                                      <dl class="clearfix csdn-tracking-statistics recommend_article" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                      <a href="http://blog.csdn.net/wangkjs/article/details/47442661"  target="_blank" strategy="searchFromBaidu_6">
                        <dd class="clearfix">
                          <h2 class="">Python3.X 下载图片</h2>
                          <div class="summary">
                              urlretrieve(url, filename=None, reporthook=None, data=None)

  urlretrieve方法直接将远程数据下载到本地。参数filename指...                          </div>

                          <ul class="">
                              <li class="avatar_img"><img src="http://avatar.csdn.net/2/6/4/3_wangkjs.jpg" alt="wangkjs" title="wangkjs"/></li>
                              <li class="user_name">wangkjs</li>
                              <li class="time">2015年08月12日 12:36</li>
                              <li class="visited_num"><i class="icon iconfont icon-read"></i><span>1122</span></li>
                          </ul>
                        </dd>
                      </a>
                  </dl>
                                                                                      <dl class="clearfix csdn-tracking-statistics recommend_article" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                      <a href="http://blog.csdn.net/littlethunder/article/details/9396059"  target="_blank" strategy="BlogCommendFromBaidu_7">
                        <dd class="clearfix">
                          <h2 class="">python多线程+队列下载资源</h2>
                          <div class="summary">
                              网上有一些公开课视频教程还有课件啥的，手动下太慢了，写个python下载。我想尽可能的做到通用性，以后可以直接用的，代码如下，抛砖引玉，欢迎建议和意见：
import urllib.request
i...                          </div>

                          <ul class="">
                              <li class="avatar_img"><img src="http://avatar.csdn.net/E/E/8/3_littlethunder.jpg" alt="littlethunder" title="littlethunder"/></li>
                              <li class="user_name">littlethunder</li>
                              <li class="time">2013年07月21日 09:52</li>
                              <li class="visited_num"><i class="icon iconfont icon-read"></i><span>12362</span></li>
                          </ul>
                        </dd>
                      </a>
                  </dl>
                                                                                      <dl class="clearfix csdn-tracking-statistics recommend_article" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                      <a href="http://blog.csdn.net/kelin_liu/article/details/50898305"  target="_blank" strategy="BlogCommendFromBaidu_8">
                        <dd class="clearfix">
                          <h2 class="">简单的python3 urllib3 多线程 抓取图片</h2>
                          <div class="summary">
                              简单的python3 urllib3 多线程 抓取图片                          </div>

                          <ul class="">
                              <li class="avatar_img"><img src="http://avatar.csdn.net/5/4/F/3_kelin_liu.jpg" alt="kelin_liu" title="kelin_liu"/></li>
                              <li class="user_name">kelin_liu</li>
                              <li class="time">2016年03月15日 17:29</li>
                              <li class="visited_num"><i class="icon iconfont icon-read"></i><span>1522</span></li>
                          </ul>
                        </dd>
                      </a>
                  </dl>
                                                                                      <dl class="clearfix csdn-tracking-statistics recommend_article" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                      <a href="http://blog.csdn.net/a519640026/article/details/50698874"  target="_blank" strategy="BlogCommendFromBaidu_9">
                        <dd class="clearfix">
                          <h2 class="">Python 多线程抓取图片效率实验</h2>
                          <div class="summary">
                              Python 多线程抓取图片效率实验import requests
import urlparse
import os
import time
import threading
import Queu...                          </div>

                          <ul class="">
                              <li class="avatar_img"><img src="http://avatar.csdn.net/A/1/3/3_a519640026.jpg" alt="a519640026" title="a519640026"/></li>
                              <li class="user_name">a519640026</li>
                              <li class="time">2016年02月19日 16:22</li>
                              <li class="visited_num"><i class="icon iconfont icon-read"></i><span>565</span></li>
                          </ul>
                        </dd>
                      </a>
                  </dl>
                                                    <!-- <script async="async" charset="utf-8" src="https://shared.ydstatic.com/js/yatdk/3.0.0/stream.js" data-notify="bannerMulti_notify" data-insert-nodes="yd_a_d_feed_1,yd_a_d_feed_13,yd_a_d_feed_18,yd_a_d_feed_23,yd_a_d_feed_28,yd_a_d_feed_33" data-id="8935aa488dd58452b9e5ee3b44f1212f" data-hide-ad-label="0" data-div-Style="width:100%;padding:16px 35px 16px 10px;" data-img-Style="float:right;width:120px;" data-tit-Style="font-size:20px;font-weight:bold;margin-bottom:10px;font-family: 'PingFang SC', 'Microsoft YaHei', SimHei, Arial, SimSun;" data-des-Style="width:700px;font-size:14px;font-family: 'PingFang SC', 'Microsoft YaHei', SimHei, Arial, SimSun;" > </script> -->
      
      </div>
  </main>
<aside>
    <div class="right_box user_info">
    <dl class="inf_bar clearfix">
        <dt class="csdn-tracking-statistics tracking-click" data-mod="popu_381">
        <a href="http://blog.csdn.net/jason__liang" target="_blank">
            <img src="http://avatar.csdn.net/B/C/7/3_jason__liang.jpg" class="avatar_pic">
        </a>
      </dt><dd>
            <h3 class="csdn-tracking-statistics tracking-click"  data-mod="popu_380"><a href="http://blog.csdn.net/jason__liang" target="_blank" id="uid">jason__liang</a></h3>
            <div class="medals" title="">
                      </div>
                        <span  class="csdn-tracking-statistics tracking-click" data-mod="popu_379"><a class="btn btn-redborder-small "  id="span_add_follow" target="_self">关注</a></span>
                    </dd>
    </dl>
    <div class="inf_number_box clearfix">
        <dl title="74">
            <dt>原创</dt>
            <dd>74</dd>
        </dl>
        <dl title="2">
            <dt>粉丝</dt>
            <dd id='fan'>2</dd>
        </dl>
        <dl title="0">
            <dt>喜欢</dt>
            <dd>0</dd>
        </dl>
        <dl title="4">
          <dt>评论</dt>
          <dd>4</dd>
        </dl>
    </div>

</div>
<div class="interflow clearfix">
      <div class="grade gradeAndbadge">
      <span>等级：</span>
      <div>
        <a href="http://blog.csdn.net/home/help.html#level" title="3级,点击查看等级说明" target="_blank">
          <img class="grade-img" src="http://c.csdnimg.cn/jifen/images/xunzhang/jianzhang/blog3.png" alt="3级,点击查看等级说明">
        </a>
      </div>
    </div>
    <div class="gradeAndbadge" title="17120">
        <span>访问量：</span>
        <span class="num odd-overhidden">17.12K</span>
    </div>

    <div class="gradeAndbadge" title="875">
      <span>积分：</span>
      <span  class="num odd-overhidden">875</span>
    </div>
    <div class="gradeAndbadge" title="53299">
        <span>排名：</span>
        <span class="num odd-overhidden">53.29K</span>
    </div>

</div>          <div class="extension_other csdn-tracking-statistics tracking-click" data-mod="popu_389">
          <!--u3032528-->
        <div class="flashrecommend">
            <script type="text/javascript" src="//cee1.iteye.com/bwocoltly.js"></script>
        </div>
      </div>
      <div class="writings">
    <div class="public_signal clearfix">
      <h3>他的最新文章</h3>
      <a href="http://blog.csdn.net/jason__liang" target="_blank" class="more"><span>更多文章</span></a>
    </div>
      <ul class="inf_list clearfix csdn-tracking-statistics tracking-click" data-mod="popu_382">
                    <li class="clearfix">
              <a href="http://blog.csdn.net/Jason__Liang/article/details/79241801" target="_blank">python 自动提醒黑龙江招生信息网考研成绩 小程序</a>
          </li>
                    <li class="clearfix">
              <a href="http://blog.csdn.net/Jason__Liang/article/details/79158236" target="_blank">python WiFi暴力破解小程序</a>
          </li>
                    <li class="clearfix">
              <a href="http://blog.csdn.net/Jason__Liang/article/details/78387532" target="_blank">LintCode 166-倒数第k个节点</a>
          </li>
                    <li class="clearfix">
              <a href="http://blog.csdn.net/Jason__Liang/article/details/78387460" target="_blank">LintCode 480-二叉树的所有路径</a>
          </li>
                    <li class="clearfix">
              <a href="http://blog.csdn.net/Jason__Liang/article/details/78387314" target="_blank">LintCode 95-验证二叉查找树</a>
          </li>
                </ul>
  </div>
            <div class="user-hotArticle sort userSort">
            <h3>文章分类</h3>
            <ul class="hotArticle-list userSort-list">
                                    <li class="clearfix">
                        <a href="http://blog.csdn.net/jason__liang/article/category/6530980" class="odd-overhidden floatL">LintCode</a>
                        <div class="read list-left floatR"><span>64篇</span></div>
                    </li>
                                    <li class="clearfix">
                        <a href="http://blog.csdn.net/jason__liang/article/category/6702576" class="odd-overhidden floatL">Python3</a>
                        <div class="read list-left floatR"><span>8篇</span></div>
                    </li>
                            </ul>
            <div class="unfold-btn">
              <span>展开</span><i class="icon iconfont icon-xiajiantou"></i>
            </div>
        </div>
    <!--    [StartShowSelfColumn]-->
    <!--    [EndShowSelfColumn]-->
            <div class="user-hotArticle sort timeSort">
          <h3>文章存档</h3>
          <ul class="hotArticle-list timeSort-list">
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2018/02" class="odd-overhidden floatL">2018年2月</a>
                  <div class="read list-left floatR"><span>1篇</span></div>
                </li>
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2018/01" class="odd-overhidden floatL">2018年1月</a>
                  <div class="read list-left floatR"><span>1篇</span></div>
                </li>
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2017/10" class="odd-overhidden floatL">2017年10月</a>
                  <div class="read list-left floatR"><span>6篇</span></div>
                </li>
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2017/08" class="odd-overhidden floatL">2017年8月</a>
                  <div class="read list-left floatR"><span>3篇</span></div>
                </li>
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2017/07" class="odd-overhidden floatL">2017年7月</a>
                  <div class="read list-left floatR"><span>3篇</span></div>
                </li>
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2017/06" class="odd-overhidden floatL">2017年6月</a>
                  <div class="read list-left floatR"><span>3篇</span></div>
                </li>
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2017/05" class="odd-overhidden floatL">2017年5月</a>
                  <div class="read list-left floatR"><span>2篇</span></div>
                </li>
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2017/04" class="odd-overhidden floatL">2017年4月</a>
                  <div class="read list-left floatR"><span>4篇</span></div>
                </li>
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2017/03" class="odd-overhidden floatL">2017年3月</a>
                  <div class="read list-left floatR"><span>1篇</span></div>
                </li>
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2017/02" class="odd-overhidden floatL">2017年2月</a>
                  <div class="read list-left floatR"><span>13篇</span></div>
                </li>
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2017/01" class="odd-overhidden floatL">2017年1月</a>
                  <div class="read list-left floatR"><span>11篇</span></div>
                </li>
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2016/12" class="odd-overhidden floatL">2016年12月</a>
                  <div class="read list-left floatR"><span>25篇</span></div>
                </li>
                            <li class="clearfix">
                  <a href="http://blog.csdn.net/jason__liang/article/month/2016/11" class="odd-overhidden floatL">2016年11月</a>
                  <div class="read list-left floatR"><span>1篇</span></div>
                </li>
                      </ul>
          <div class="unfold-btn">
            <span>展开</span><i class="icon iconfont icon-xiajiantou"></i>
          </div>
        </div>
        <div class="user-hotArticle">
        <h3>他的热门文章</h3>
        <ul class="hotArticle-list csdn-tracking-statistics tracking-click" data-mod="popu_521">
<!--            [StartHotArticles]-->
                                                <li>
                        <a href="http://blog.csdn.net/jason__liang/article/details/55097256">flask TemplateNotFound  pycharm</a>
                        <div class="read list-left"><i class="icon iconfont icon-read"></i><span>1026</span></div>
                    </li>
                                    <li>
                        <a href="http://blog.csdn.net/jason__liang/article/details/54836455">LintCode 15-全排列 16-带重复元素的全排列</a>
                        <div class="read list-left"><i class="icon iconfont icon-read"></i><span>920</span></div>
                    </li>
                                    <li>
                        <a href="http://blog.csdn.net/jason__liang/article/details/54893635">Python3 百度图片 美女 下载 爬虫 多线程</a>
                        <div class="read list-left"><i class="icon iconfont icon-read"></i><span>860</span></div>
                    </li>
                                    <li>
                        <a href="http://blog.csdn.net/jason__liang/article/details/54836211">LintCode 18-带重复元素的子集 JAVA</a>
                        <div class="read list-left"><i class="icon iconfont icon-read"></i><span>530</span></div>
                    </li>
                                    <li>
                        <a href="http://blog.csdn.net/jason__liang/article/details/54923168">Python3 学校成绩更新实时通知</a>
                        <div class="read list-left"><i class="icon iconfont icon-read"></i><span>480</span></div>
                    </li>
                            <!--            [EndHotArticles]-->
        </ul>
    </div>

<!--    [startcustom]-->
    <!--    [endcustom]-->
  <div class="fixRight_box" style="height:256px">
    <div class="fixRight">
                    <!--u3163270-->
            <script type="text/javascript" src="//cee1.iteye.com/avneunkwb.js"></script>
                <div class="right_box copyright csdn-tracking-statistics" data-mod="popu_475" data-dsm="post">
        <h3 class="feed_new_tit"><span class="line"></span><span class="txt">联系我们</span></h3>
        <div class="contact-box">
            <div class="img-box">
                <img src="https://www.csdn.net/images/csdn_cs_qr.png" alt="客服">
            </div>
            <div class="contact-info">
                <h4>请扫描二维码联系客服</h4>
                <p>
                    <i class="icon iconfont icon-mail"></i>
                    <a href="mailto:webmaster@csdn.net" target="_blank">
                        <span class="txt">webmaster@csdn.net</span>
                    </a>
                </p>
                <p>
                    <i class="icon iconfont icon-call"></i>
                    <span class="txt">400-660-0108</span>
                </p>
                <p>
                    <i class="icon iconfont icon-QQ"></i>
                    <a href="http://wpa.qq.com/msgrd?v=3&amp;uin=2431299880&amp;site=qq&amp;menu=yes" target="_blank">
                        <span class="txt">网站客服</span>
                    </a>
                </p>
            </div>
        </div>
        <div class="bg-gray">
            <div class="feed_copyright">
                <p><a class="right-dotte" href="//www.csdn.net/company/about.html" target="_blank">关于</a><a href="//www.csdn.net/company/recruit.html" target="_blank" class="right-dotte">招聘</a><a href="//www.csdn.net/company/marketing.html" target="_blank" class="right-dotte">广告服务</a><img src="https://www.csdn.net/images/ali01.png" alt="ali" title="ali"></p>
                <p class="fz12">©2018 CSDN <a href="http://www.miibeian.gov.cn/" target="_blank" class="ml14">京ICP证09002463号</a></p>
            </div>
            <div class="allow-info-box">
                <p><a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202001032100010" target="_blank"><span>经营性网站备案信息</span></a></p>
                <p><a href="http://www.cyberpolice.cn/" target="_blank"><span>网络110报警服务</span></a></p>
                <p><a href="http://www.12377.cn/" target="_blank"><span>中国互联网举报中心</span></a></p>
                <p><a href="http://www.bjjubao.org/" target="_blank"><span>北京互联网违法和不良信息举报中心</span></a></p>
            </div>
        </div>
    </div>
    </div>
  </div>
</aside></div>

<div class="left_fixed">
    <div class="left_show_button">
        <span>
          <i class="icon iconfont icon-youjiantou"></i>
        </span>
    </div>
    <ul class="left_menu" id="share_box">
        <li>
            <button class="left-fixed-btn btn-like csdn-tracking-statistics tracking-click" data-mod="popu_373" target="_self" title="点赞">
                <a href="javascript:void(0);" class="iconbox border_red" ><i class="icon iconfont icon-dianzan"></i></a>
                <a class="txt" href="javascript:void(0);">0</a>
            </button>
        </li>
        <li id="blog_artical_directory">
            <button class="left-fixed-btn left_menu_btn csdn-tracking-statistics tracking-click" data-mod="popu_372" target="_self" title="目录">
                <a href="javascript:void(0);" class="iconbox border_black" ><i class="icon iconfont icon-mulu"></i></a>
            </button>
        </li>
        <li class="menu_con">
            <div class="list_father">
                <div class="arr_box">
                    <button class="btn-noborder arr-btn scroll-down  left_scroll_down"><i class="icon iconfont icon-xiajiantou"></i></button>
                    <button class="btn-noborder arr-btn scroll-up left_scroll_top"><i class="icon iconfont icon-shangjiantou"></i></button>
                </div>
                <div class="arr"></div>
                <div id="csdnBlogDir"></div>
            </div>
        </li>
        <!--        <li>-->
        <!--            <button class="left-fixed-btn btn-like tracking-ad" data-mod="popu_373" target="_self">-->
        <!--                <span class="iconbox border_red"><i class="icon iconfont icon-xihuan-"></i></span>-->
        <!--                <span class="txt">喜欢</span>-->
        <!--                <span class="untxt">取消喜欢</span>-->
        <!--            </button>-->
        <!--        </li>-->
        <li>
            <button class="left-fixed-btn csdn-tracking-statistics tracking-click" data-mod="popu_374"  id="com-quick-collect" target="_self" title="收藏">
                <a href="javascript:void(0);" class="iconbox border_purple" ><i class="icon iconfont icon-shoucang"></i></a>
            </button>
        </li>
        <li>
            <button class="left-fixed-btn btn-pinglun csdn-tracking-statistics tracking-click" data-mod="popu_544" title="评论">
                <a href="javascript:void(0);" class="iconbox border_purple" ><i class="icon iconfont icon-pinglun"></i></a>
            </button>
        </li>
        <li class="bdsharebuttonbox">
          <button class="outside left-fixed-btn csdn-tracking-statistics tracking-click" data-mod="popu_172" title="分享到新浪微博">
                <span class="iconbox border_red2"><i class="icon iconfont icon-xinlang"></i></span>
                <a href="#" class="bds_tsina" data-cmd="tsina" > </a>
          </button>
        </li>
        <li class="bdsharebuttonbox">
          <button class="outside left-fixed-btn csdn-tracking-statistics tracking-click" data-mod="popu_172" title="分享到微信">
              <span class="iconbox border_green"><i class="icon iconfont icon-weixin"></i></span>
              <a href="#" class="bds_weixin" data-cmd="weixin" > </a>
          </button>
        </li>
        <li class="bdsharebuttonbox">
          <button class="outside left-fixed-btn csdn-tracking-statistics tracking-click" data-mod="popu_172" title="分享到QQ空间">
              <span class="iconbox border_blue"><i class="icon iconfont icon-QQ"></i></span>
              <a href="#" class="bds_qzone" data-cmd="qzone" > </a>
          </button>
        </li>
        <li id="share_box">
            
            <div class="bdsharebuttonbox csdn-tracking-statistics tracking-click" data-mod="popu_172">
                
                
                
            </div>
        </li>
    </ul>
</div>
<div class="right_fixed">
    <div class="r_ico">
        <i class="icon iconfont icon-jubao"></i>
        <span class="txt" id="reportBtn">内容举报</span>
    </div>
    <div class="returnTop">
        <i class="icon iconfont icon-fanhuidingbu"></i>
        <span>返回顶部</span>
    </div>
</div>
<div id="pop_win"></div>
<div id="popup_mask"></div>
<div class="pop_CA_cover" ></div>
<div class="pop pop_CA" >
    <div class="CA_header">
        收藏助手
        <span class="cancel_icon"  id="fapancle" ></span>
    </div>
    <iframe src="" id="collectIframe" frameborder="0" width="100%" height="360"  scrolling="no" ></iframe>
</div>
<!--举报-->
<div id="report_dialog" style="top: 250px; left: 343.5px;"><div id="panel_report">
    <div class="panel_head">不良信息举报</div>
    <form method="post" id="frmReport" class="panel_body">
        <table border="0" cellpadding="0" cellspacing="4" class="pop_table">
            <tbody><tr><td colspan="2">您举报文章：<a href="http://blog.csdn.net/Jason__Liang/article/details/54893635" target="_blank">Python3 百度图片 美女 下载 爬虫 多线程</a></td></tr>
            <tr>
                <th style="width:60px;">举报原因：</th>
                <td id="panel_reporttype">
                    <label><input type="radio" class="report_type" id="report_sex" name="report_type" value="1">色情</label>
                    <label><input type="radio" class="report_type" id="report_Politics" name="report_type" value="2">政治</label>
                    <label><input type="radio" class="report_type" id="report_copy" name="report_type" value="3">抄袭</label>
                    <label><input type="radio" class="report_type" id="report_ad" name="report_type" value="4">广告</label>
                    <label><input type="radio" class="report_type" id="report_want" name="report_type" value="5">招聘</label>
                    <label><input type="radio" class="report_type" id="report_call" name="report_type" value="6">骂人</label>
                    <br>
                    <label><input type="radio" class="report_type" id="report_other" name="report_type" value="7">其他</label>
                    <input type="text" name="report_other_content" id="report_other_content" maxlength="30" style="display: none;">
                </td>
            </tr>
            <tr id="panel_originalurl" style="display: none;">
                <th>原文地址：</th>
                <td>
                    <input id="originalurl" value="http://" name="originalurl" type="text" style="width: 90%;">
                </td>
            </tr>
            <tr>
                <th id="sp_reason">原因补充：</th>
                <td>
                    <textarea id="report_description" style="width: 300px;" rows="3" name="report_description"></textarea>
                    <p id="sp_n" style="color:#999;margin:0px;padding:0px;">(最多只允许输入30个字)</p>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input id="btnSubmitReport" name="submit" type="image" align="middle" class="btn_1" src="http://csdnimg.cn/release/phoenix/images/btn_submit.jpg">
                    <span style="padding-left:20px;"></span>
                    <img id="btnCloseReportDialog" src="http://csdnimg.cn/release/phoenix/images/btn_cancel.jpg" align="middle">
                    <div id="error" style="color: Red">
                    </div>
                </td>
            </tr>
            </tbody></table>
    </form>
</div>
    <script language="javascript" type="text/javascript">
        var isComment=0;
        //显示隐藏地址
        $(function () {
          console.log("version:phoenix");
            if(isComment){
                $("#report_description").attr("disabled",true);
                $("#sp_n").hide();
                $("#sp_reason").html("评论内容：");
            }
            $(".report_type").click(function () {
                $("#panel_originalurl,#report_other_content").hide();
                switch ($(this).val()) {
                    case '3':
                        $("#panel_originalurl").show();
                        $("#originalurl").focus();
                        break;
                    case '7':
                        if(isComment){
                            $("#report_other_content").show().focus();
                        }
                        break;
                }

            });

            $("#frmReport").submit(function () {
                if (!currentUserName) {

                    if (confirm("您的操作必须登录，是否登录？")) {
                        location.href = "http://passport.csdn.net/account/login?from=" + encodeURIComponent(location.href);
                        return false;
                    }
                    return false;
                }

                var reportType = $("input[name=report_type]:checked").val();
                if(!reportType){
                    alert("请选择举报原因！");
                    return false;
                }
                var otherInfo = "";
                switch (reportType) {
                    case '3':
                        otherInfo = $("#originalurl").val();
                        if (otherInfo == ""||otherInfo=="http://") {
                            alert("举报抄袭必须提供原创文章地址！");
                            $("#originalurl").focus();
                            return false;
                        } else if(!checkeURL(otherInfo)) {
                            alert("请输入正确的原创文章地址！");
                            $("#originalurl").focus();
                            return false;
                        }
                        break;
                    case '7':
                        otherInfo = $("#report_other_content").val();
                        if (isComment && !otherInfo) {
                            alert("请填写举报的具体原因！");
                            $("#report_other_content").focus();
                            return false;
                        }
                        if(!isComment){
                            if(!$("#report_description").val()){
                                alert("请填写举报的具体原因！");
                                $("#report_description").focus();
                                return false;
                            }
                        }
                        break;
                }
                if(!isComment){
                    if($("#report_description").val().length>30){
                        alert("举报原因最多只允许输入30个字！");
                        return false;
                    }
                }
	            nowTime = {
		            year: new Date().getFullYear(),
		            month: parseInt(new Date().getMonth())+1,
		            day: new Date().getDate(),
		            hours: parseInt(new Date().getHours())+1,
		            minutes: parseInt(new Date().getMinutes())+1,
		            seconds: parseInt(new Date().getSeconds())+1
	            };
	            var data = {
		            articleId: fileName,
		            commentId: 0,
		            reportType: reportType,
		            originalurl: $("#originalurl").val(),
		            report_other_content: $("#report_other_content").val(),
		            report_description: $("#report_description").val(),
		            currentUserName: currentUserName,
		            updatetime: nowTime.year+'/'+nowTime.month+'/'+nowTime.day+' '+ nowTime.hours+':'+nowTime.minutes+':'+seconds,
		            blogUser: username
	            };
	            if(!isComment){//如果是举报文章
		            data.report_other_content = data.report_description;
		            // data.report_description = "1. 神经网络这是一个常见的神经网络的图：这是一个常见的三层神经网络的基本构成，Layer L1是输入层，Layer L2是隐含层";
	            }

	            $.post(blog_address + "/common/report?id="+fileName+"&t=2", data, function (data) {
		            if (data.result == 1){
			            SetError("感谢您的举报，我们会尽快审核！");
		            }else{
			            if (data.content) alert(data.content);
		            }

	            });
                return false;
            });

            $("#btnCloseReportDialog").click(function () {
                CloseDiv();
            });

        });

        //提示后关闭方法
        function SetError(error) {
            $("#btnCloseReportDialog").trigger("click");
            alert(error);
            CloseDiv();
        }

        //关闭方法
        function CloseDiv() {

            $.removeMask();
            $("#report_dialog").hide();
            return false;
        }

        //验证url
        function checkeURL(url){
            return /^http(s)?:\/\/([\w-]+\.)+[\w-]+/i.test(url);
        }
    </script>
</div>
<!--  fixme 后期清理掉  -->
<div id="a52b5334d" style="width: 1px; height: 1px; display: none;">
    <script id="adJs52b5334"></script>
    <script>document.getElementById("adJs52b5334").src = "http://ads.csdn.net/js/opt/52b5334.js?t=" + Math.random();</script>
</div>
<!-- <script type="text/javascript" src="http://passport.csdn.net/content/loginbox/login.js"></script> -->
<script>window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "1", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "16" }, "share": {} }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>
<script type="text/javascript" >
    if($(".article_collect li").length==1){$(".article_collect").hide();}
    if($(".article_tags li").length==1){$(".article_tags").hide();}
    $(".edit a").attr("href","http://mp.blog.csdn.net/postedit/"+fileName);
    $.each($(".edu_li a"),function(){$(this).attr("href",$(this).attr("href").replace("blog7","blog9"))});
    new CNick('#uid').showNickname();

    if($("#fan").html()=="")
    {
	    $("#fan").html(0);
    }
</script>
<script src="http://c.csdnimg.cn/public/common/append_mark/appendMark.min.js?v=5.00.43" type="text/javascript"></script>
<script type="text/javascript">
    appendMark($('.recommend_list').children('a').find('dt'),$('.extension_other'),$('.yd_a_d_feed_cla'))
</script>
<div class=""id="loginWrap"></div>
<div class="" id="dlMask"></div>
</body>
